package com.xjtu.mybatisplus.service;

import com.xjtu.mybatisplus.common.JsonResponse;
import com.xjtu.mybatisplus.model.domain.Subscribe;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.mybatisplus.model.vo.SubNoticeVo;
import com.xjtu.mybatisplus.model.vo.SubscribeVo;

import java.util.List;

/**
 * <p>
 * ���� 服务类
 * </p>
 *
 * @author lsong
 * @since 2023-12-27
 */
public interface SubscribeService extends IService<Subscribe> {

    JsonResponse getStatus(Long userId, Long categoryId);

    JsonResponse setStatus(Long userId, Long categoryId, boolean status);

    JsonResponse<List<SubscribeVo>> getList(Long userId);

    boolean generateNotice(SubNoticeVo subNoticeVo, List<Long> userIds);

}
